//现场灾害损失评估分布
import request from '@/utils/request';

// 全国5级以上地震数量和灾害评估数量
export function getDisasterNum() {
  return request({
    url: '/xczh/getDisasterNum',
    method: 'get',
  });
}

// 灾损数量前五省份
export function getDamageNum() {
  return request({
    url: 'xczh/getDamageNum',
    method: 'get',
  });
}

// 近五次地震灾害各类损失占比
export function getLossProportion() {
  return request({
    url: '/xczh/getLossProportion',
    method: 'get',
  });
}

// 灾评单位统计
export function getUnitCount() {
  return request({
    url: '/xczh/getUnitCount',
    method: 'get',
  });
}

// //灾损值前五省份
export function getDisasterValue() {
  return request({
    url: '/xczh/getDisasterValue',
    method: 'get',
  });
}
// 地震灾害损失评估访问统计
export function getVisitNum(query) {
  return request({
    url: '/xczh/getVisitNum',
    method: 'get',
    params: query,
  });
}

//二级 烈度页面
//现场数据占比和地震烈度图
export function getXcProportion(query) {
  return request({
    url: '/xczh/getXcProportion',
    method: 'get',
    params: query,
  });
}
export function getMapDate() {
  return request({
    url: '/xczh/getMapDate',
    method: 'get',
  });
}
export function getCountyDisasterByCountyCode(params) {
  return request({
    url: '/xczh/getCountyDisasterByCountyCode',
    method: 'get',
    params,
  });
}
export function getSecondMapDate(params) {
  return request({
    url: '/xczh/getSecondMapDate',
    method: 'get',
    params,
  });
}
//典型破坏照片 
export function getDisasterImage(params) {
  return request({
    url: '/xczh/getDisasterImage',
    method: 'get',
    params,
  });
}
